import java.util.ArrayList;

public class CourseTest {
    public static void main(String[] args) {
        ArrayList<Course> list = new ArrayList<>();
        list.add(new Course("C001","程序设计基础",3));
        list.add(new Course("C002","数据库原理",3));
        list.add(new Course("C003","Java面向对象",4));
        for(Course c : list){
            c.show();
        }
    }
}
